<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/common.jsp"%>

<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
    <!--<![endif]-->
    <!-- BEGIN HEAD -->

    <head>
        <meta charset="utf-8" />
        <title>后台管理系统</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta content="width=device-width, initial-scale=1" name="viewport" />
        <meta content="" name="description" />
        <meta content="" name="author" />
        <!-- BEGIN GLOBAL MANDATORY STYLES -->
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
       <%--  <link href="${basePath}/res/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" /> --%>
        <!-- END GLOBAL MANDATORY STYLES -->
        <!-- BEGIN THEME GLOBAL STYLES -->
        <link href="${basePath}/res/assets/global/css/components-rounded.min.css" rel="stylesheet" id="style_components" type="text/css" />
        <link href="${basePath}/res/assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
        <!-- END THEME GLOBAL STYLES -->
        <!-- BEGIN THEME LAYOUT STYLES -->
        <link href="${basePath}/res/assets/layouts/layout2/css/layout.min.css" rel="stylesheet" type="text/css" />
        <link href="${basePath}/res/assets/layouts/layout2/css/themes/blue.min.css" rel="stylesheet" type="text/css" id="style_color" />
        <link href="${basePath}/res/assets/layouts/layout2/css/custom.min.css" rel="stylesheet" type="text/css" />
        <link
		href="${basePath}/res/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css"
			rel="stylesheet" type="text/css" />
		<link
			href="${basePath}/res/assets/global/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css"
		rel="stylesheet" type="text/css" />
        <!-- END THEME LAYOUT STYLES -->
        <link rel="shortcut icon" href="favicon.ico" /> </head>
    <!-- END HEAD -->

    <body class="page-header-fixed page-sidebar-closed-hide-logo page-container-bg-solid">
        
        <%@ include file="/manage/page-header.jsp" %>
        
        <!-- BEGIN HEADER & CONTENT DIVIDER -->
        <div class="clearfix"> </div>
        <!-- END HEADER & CONTENT DIVIDER -->
        <!-- BEGIN CONTAINER -->
        <div class="page-container">
            
            <%@include file="/manage/page-sidebar.jsp" %>
            
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                    <!-- BEGIN PAGE HEADER-->
                    
                    <%@include file="/manage/theme-panel.jsp" %>
                    <%@include file="/manage/page-title.jsp" %>
                    
                    <!-- END PAGE HEADER-->
					<form  role="form" method="post" class="form-horizontal" action="${basePath}/message/add/" id="searchForm">

					<div class="portlet box green">
						<div class="portlet-title">
							<div class="caption">
								<i class="fa fa-cogs"></i>企业信息
							</div>

						</div>
						<div class="portlet-body flip-scroll">
							<div class="form-body">
								<div class="row">
									<div class="col-md-6">
										<div class="form-group">
											<label class="control-label col-md-3">标题:</label>
											<div class="col-md-9">
												<p class="form-control-static">
												<input class="form-control" type="text" name="msg.title" value="${record.title }" required="required">
												</p>
											</div>
										</div>
									</div>
									<!--/span-->
									<div class="col-md-6">
										<div class="form-group">
											<label class="control-label col-md-3">发布人:</label>
											<div class="col-md-9">
												<p class="form-control-static">
												<input class="form-control" type="text" name="msg.releaseName" value="${record.releaseName }" required="required">
												</p>
											</div>
										</div>
									</div>
									<!--/span-->
								</div>
								<!--/row-->
								<div class="row">
									<div class="col-md-6">
										<div class="form-group">
											<label class="control-label col-md-3">状态:</label>
											<div class="col-md-9">
												<p class="form-control-static">
													<dic:getSelect path="TOP->MESSAGE_STATUS"  attributes="{class:'form-control',name:'msg.status'}" value="${record.status }"></dic:getSelect>
												</p>
											</div>
										</div>
									</div>
									<!--/span-->
									<div class="col-md-6">
										<div class="form-group">
											<label class="control-label col-md-3">发布时间:</label>
											<div class="col-md-9">
												<p class="form-control-static">
												<input class="form-control form-control-inline  date-picker"
												name="msg.releaseTime" type="text" required="required">
												</p>
											</div>
										</div>
									</div>
									<!--/span-->
								</div>
								<div class="row">
									<div class="col-md-10 col-md-push-1">
										<textarea rows="8" name="msg.context" placeholder="内容" class="form-control c-square">${record.context }</textarea>
									</div>
								</div>
								<br>
								<div class="row">
									<div class="col-md-12" align="center">
										<div class="form-group">
											<button class="btn blue" type="submit">保存</button>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</form>

				
			</div>
                <!-- END CONTENT BODY -->
            </div>
            <!-- END CONTENT -->
            
            
        </div>
        <!-- END CONTAINER -->
        
        <%@ include file="/manage/page-quick-sidebar-toggler.jsp" %>
        
        <%@ include file="/manage/page-footer.jsp" %>
        
        <!--[if lt IE 9]>
<script src="${basePath}/res/assets/global/plugins/respond.min.js"></script>
<script src="${basePath}/res/assets/global/plugins/excanvas.min.js"></script> 
<![endif]-->
        <!-- BEGIN CORE PLUGINS -->
        <script src="${basePath}/res/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-hover-dropdown/bootstrap-hover-dropdown.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/uniform/jquery.uniform.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootbox/bootbox.min.js" type="text/javascript"></script>
      <%--   <script src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js" type="text/javascript"></script> --%>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script src="${basePath}/res/assets/global/scripts/app.js" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="${basePath}/res/assets/layouts/layout2/scripts/layout.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/layouts/layout2/scripts/demo.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
        <script src="${basePath}/res/js/page.js" type="text/javascript"></script>
        <script
		src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js"
		type="text/javascript"></script>
		<script
		src="${basePath}/res/assets/global/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"
		type="text/javascript"></script>
        <!-- END THEME LAYOUT SCRIPTS -->
        
        <script type="text/javascript">
        
        	bootbox.setLocale("zh_CN");
        	function doExport(){
    			bootbox.confirm("确认导出?", function(result) {
    		           if(result){
    		        	  window.location.href='${basePath}/stock/order/export'; 
    		           }
    		        }); 
    		}
        	$(function(){
        		
        		$('.date-picker').datepicker({
        	        rtl: App.isRTL(),
        	        language: 'zh-CN',
        	        format:'yyyy-mm-dd',
        	        orientation: "left",
        	        autoclose: true
        	    });
        		
        	});
        </script>
        
    </body>

</html>